<?php

namespace Part06_DecorationMode\Code3;

require_once '../../autoload.php';

$componentObj = new ConcreteComponent();
$d1 = new ConcreteDecoratorA();
$d2 = new ConcreteDecoratorB();

$d1->setComponent($componentObj);
$d2->setComponent($d1);
$d2->Operation();